package com.hjl.spring;

import com.hjl.spring.controller.EmpController;
import com.hjl.spring.mapper.EmpMapper;
import com.hjl.spring.pojo.Emp;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

/**
 * @author ServivE
 * @version 0.1
 * @className TestEmpController
 * @description
 * @date 2024/8/8 10:45
 * @since jdk11
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring-mybatis.xml"})
public class TestEmpController {
    @Autowired
    private EmpController empController;
//    private EmpMapper empMapper;
    @Test
    public void testSelectAllEmps() {
        /*List<Emp> allEmps = empMapper.getAllEmps();
        System.out.println(allEmps);*/
        empController.soutAllEmps();
    }
}
